projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7f7e54
)
* src/emacs.c (main): [DAEMON_MUST_EXEC]: Restore close-on-exec after exec.
author
Paul Eggert
<eggert@cs.ucla.edu>
Sun, 29 Dec 2013 07:42:46 +0000
(23:42 -0800)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Sun, 29 Dec 2013 07:42:46 +0000
(23:42 -0800)
Fixes: debbugs:16262
src/emacs.c
patch
|
blob
|
history
diff --git
a/src/emacs.c
b/src/emacs.c
index b5bd3129ad2daca2bce2698416d32209612cced1..2e835c34a8b6d1789704f8a9580be80148a35c6b 100644
(file)
--- a/
src/emacs.c
+++ b/
src/emacs.c
@@
-1117,6
+1117,7
@@
Using an Emacs configured with --with-x-toolkit=lucid does not have this problem
sscanf (dname_arg, "\n%d,%d\n%s", &(daemon_pipe[0]), &(daemon_pipe[1]),
dname_arg2);
dname_arg = *dname_arg2 ? dname_arg2 : NULL;
+ fcntl (daemon_pipe[1], F_SETFD, FD_CLOEXEC);
}
#endif /* DAEMON_MUST_EXEC */